<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>

<html lang="en">
<head>
	<%String path = request.getServletContext().getContextPath();%>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
	<title>特产一号店-修改密码</title>
	<link rel="stylesheet" type="text/css" href="<%=path %>/css/reset.css">
	<link rel="stylesheet" type="text/css" href="<%=path %>/css/main.css">
</head>
<body>
	<div class="login_top clearfix">
		<a href="<%=path %>/index.jsp" class="login_logo"><img src="<%=path %>/images/logo.png"></a>	
	</div>

	<div class="login_form_bg">
		<div class="login_form_wrap clearfix">
			<div class="login_banner fl"></div>
			<div class="slogan fl">日夜兼程 · 急速送达</div>
			<div class="login_form fr">
				<div class="login_title clearfix">
					<h1>修改密码</h1>
				</div>
				<%String  id =request.getParameter("id");%>
				<div class="form_input">
					<form action="<%=path%>/UserinfoController?action=alter&id=<%=id%>" method="post">
						<input type="password" id="cpwd" name="pass" class="name_input" placeholder="请输入密码">
						<input type="password" id="pwd" name="passs" class="pass_input" placeholder="请再次输入密码"><span id="pass2"></span>
						
						
						<input type="submit" name="" value="修改密码" class="input_submit">
					</form>
				</div>
			</div>
		</div>
	</div>

<jsp:include page="/inc/footer.jsp"></jsp:include>

<script>
function KeyUp(){                 //二次密码判断
	var spx = $("#pass2");
	
	var cpwd = $("#cpwd");
	var v1 = cpwd.val();
	var pwd =$("#pwd");
	var v2 =pwd.val();
		if(v1!=v2){
			spx.html("两次密码输入不一致");
		}else{
			spx.html("");
		}
}
	
</script>